#gridPanel
{
	width:480px;
	height:480px;
	margin:0 auto;
	background-color:#bbada0;
	border-radius:10px;
	position:relative;
}
.grid,.cell
{
	width:100px;
	height:100px;
	border-radius:6px;
}
.grid
{
	background-color:#ccc0b3;
	/*display:inline-block;*/
	float:left;
	margin:16px 0px 0px 16px;
}
.cell
{
	/*background-color:#fff;*/
	position:absolute;
	font-size:60px;
	text-align:center;
	line-height:100px;
	color:#fff;
}
/*根据行数id设置top值*/
div[id^="c0"]{top:16px;}
div[id^="c1"]{top:132px;}
div[id^="c2"]{top:248px;}
div[id^="c3"]{top:364px;}
div[id^="c4"]{top:480px;}
div[id^="c5"]{top:596px;}
div[id^="c6"]{top:712px;}
div[id^="c7"]{top:828px;}
div[id^="c8"]{top:944px;}
div[id^="c9"]{top:1060px;}
/*根据列数id设置left值*/
div[id$="0"]{left:16px;}
div[id$="1"]{left:132px;}
div[id$="2"]{left:248px;}
div[id$="3"]{left:364px;}
div[id$="4"]{left:480px;}
div[id$="5"]{left:596px;}
div[id$="6"]{left:712px;}
div[id$="7"]{left:828px;}
div[id$="8"]{left:944px;}
div[id$="9"]{left:1060px;}

.n2{background-color:#eee3da}
.n4{background-color:#ede0c8}
.n8{background-color:#f2b179}
.n16{background-color:#f59563}
.n32{background-color:#f67c5f}
.n64{background-color:#f65e3b}
.n128{background-color:#edcf72}
.n256{background-color:#edcc61}
.n512{background-color:#9c0}
.n1024{background-color:#33b5e5}
.n2048{background-color:#09c}
.n4096{background-color:#a6c}
.n8192{background-color:#93c}
.n16384{background-color:#282}
.n32768{background-color:#0f2}
.n65536{background-color:#d20}
.n131072{background-color:#f66}
.n262144{background-color:#f90}
.n524288{background-color:#f00}
.n1048576{background-color:#000}
.n2,.n4{color:#776e65}
.n1024,.n2048,.n4096,.n8192{font-size:40px}
.n16384,.n32768,.n65536{font-size:30px}
.n131072,.n262144,.n524288{font-size:28px}
.n1048576{font-size:24px}

p
{
	width:850px;
	margin:0 auto;
	font-size:40px;
	font-family:Arial;
	font-weight:bold;
}
body>p
{
	padding:15px 0 15px 80px;
}
#score,#top
{
	display:inline-block;
	width:130px;
}
#gameOver
{
	width:100%;
	height:100%;
	position:absolute;
	top:0px;
	left:0px;
	display:none;
}
#gameOver>div
{
	width:100%;
	height:100%;
	background-color:#555;
	opacity:0.5;
}
#gameOver>p
{
	position:absolute;
	width:500px;
	height:200px;
	top:50%;
	left:50%;
	margin-left:-250px;
	margin-top:-100px;
	background-color:#fff;
	text-align:center;
	line-height:1.5em;
	border-radius:10px;
	border:1px solid #edcf72;
}
#gameOver .btn
{
	background-color:#9f8d77;
	color:#fff;
	border-radius:6px;
	padding:8px;
	cursor:pointer;
}